package com.jdrx.sw.sewage.dao;

import com.jdrx.sw.sewage.beans.entity.GatherDevPO;
import com.jdrx.sw.sewage.beans.vo.DeviceDateDisplayVO;
import com.jdrx.sw.sewage.beans.vo.GatherDevVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 站点的设备，存放设备特有属性DAO（sewage_station_device）
 * Created by generator on 2020-10-12.
 */
@Mapper
public interface GatherDevDAO {

    int deleteByPrimaryKey(Long id);

    int insert(GatherDevPO record);

    int insertSelective(GatherDevPO record);

    GatherDevPO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(GatherDevPO record);

    int updateByPrimaryKey(GatherDevPO record);

    List<GatherDevVO> selectByStationId(@Param("stationId") Long stationId,
                                        @Param("processunitId") Long processunitId);

    List<String> selectNameList(Long stationId);

    GatherDevPO selectBusIdAndva(@Param("stationId") Long stationId,
                                 @Param("value") String value,
                                 @Param("pValue") String pValue);

    Long selectNextId();

    List<DeviceDateDisplayVO> findDisplayByProIdAndDevId(@Param("devId") Long devId,
                                                         @Param("processunitId") Long processunitId);
}